﻿using System.Collections.Generic;
using BusinessObjects;

namespace MainGameModule.ViewModels
{
    /// <summary>
    /// Static Region Objects like trees, houses, bushes, etc. which can be wrapped in other obejcts and turn into
    /// houses with snow or trees with bees, bushes with puddles.. etc.
    /// </summary>
    public abstract class RegionObject : BaseBusinessObject
    {
        private List<string> description;
        private double x;
        private double y;

        public List<string> Description
        {
            get
            {
                if ( this.description == null )
                    this.description = new List<string>();

                return this.description;
            }
        }

        public double X
        {
            get
            {
                return this.x;
            }
            set
            {
                if ( this.X == value )
                    return;

                this.x = value;
                this.NotifyPropertyChanged( "X" );
            }
        }

        public double Y
        {
            get
            {
                return this.y;
            }
            set
            {
                if ( this.Y == value )
                    return;

                this.y = value;
                this.NotifyPropertyChanged( "Y" );
            }
        }
    }
}
